#include <stdio.h>

int main()
{
    int k,n;
    double s;
    scanf("%d",&k);
    while(s < k)
        {
            s += 1.0/n;
            n++;
        }

    printf("%d",n);
    return 0;
}
